package com.sky.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "菜品列表分页查询")
public class DishPageVO implements Serializable {

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("菜品类型")
    private Long categoryId;

    @ApiModelProperty("描述信息")
    private String description;

    @ApiModelProperty("菜品名称")
    private String name;

    @ApiModelProperty("菜品售卖状态")
    private Integer status;

    @ApiModelProperty("菜品价格")
    private BigDecimal price;

    @ApiModelProperty("菜品图片")
    private String image;

    @ApiModelProperty("最后操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
